<?php
include('act.php');

//print_r($xmlresult);
$authkey = $xmlresult;
//echo $authkey;
if (isset($authkey)) {
setcookie("authcookie", "$authkey", time()+3600);
$uname = $_REQUEST['in_account'];
setcookie("account", "$uname", time()+3600);
header( "refresh:2;url=index.php?p=home" );
}else{
die("<br />Something went wrong... <a href=\"index.php?p=login\">Go back!</a>");
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHPAtheme by giod - Logging In...</title>
<link href="style.css" rel="stylesheet" type="text/css"/>


</head>

<body>
<div id="container">
<!-- header -->
<div id="header">

<div id="logo"><a href="index.php"><img src="images/PHPAtheme.png"/></a></div>

<div id="slogan">Manage your Atheme services account from the web!</div>

</div>

<div id="header_menu"><a href="#">Home</a> &nbsp; | &nbsp; <a href="#">NickServ</a> &nbsp; | &nbsp; <a href="#">ChanServ</a> &nbsp; | &nbsp; <a href="#">MemoServ</a></div>

<!--end header -->
<!-- main -->
<div id="main">

<div id="sidebar">
<?php include('sidebar.php') ?>
</div>

<div id="text">
<!-- begin content -->

Logged in! Taking you home...

<!-- end content -->
</div>

</div>
<!-- end main -->
<!-- footer -->
<div id="footer_menu"><a href="#">Home</a> &nbsp; | &nbsp; <a href="#">NickServ</a> &nbsp; | &nbsp; <a href="#">ChanServ</a> &nbsp; | &nbsp; <a href="#">MemoServ</a></div>

<div id="footer">
Copyright 2010 Collective Insanity.
</div>
<!-- end footer -->
</div>
</body>
</html>